<template>
  <view>
    <view class="p10">{{ title }}</view>

    <u-button size="small" type="primary" @click="change">change</u-button>

    <u-gap height="10"></u-gap>
    <u-button size="small" type="primary" @click="back">返回</u-button>
  </view>
</template>

<script setup>
import { ref } from '@vue/composition-api'

const testRef = ref(null)
const title = ref('composition-api')

function change() {
  title.value = 'change value'
}
function back() {
  uni.switchTab({
    url: '/pages/test/test',
  })
}
</script>

<style lang="scss"></style>
